package com.wangshouyu.mp.offiaccount.message;

import java.util.Objects;

/**
 * @author 王守钰
 * @date 2020年12月07日 14:25
 * @description 客服命令消息
 */
public class KfCommandMessage extends BaseKfMessage{

    /**
     * 命令
     */
    private String command;

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        KfCommandMessage that = (KfCommandMessage) o;
        return Objects.equals(command, that.command);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), command);
    }

    @Override
    public String toString() {
        return "KfCommandMessage{" +
                "command='" + command + '\'' +
                '}';
    }

    public KfCommandMessage(String command) {
        this.command = command;
    }

    public KfCommandMessage() {
    }
}
